package com.sxpi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sxpi.common.result.Result;
import com.sxpi.model.entity.Users;
import com.sxpi.model.page.PageResult;
import com.sxpi.model.vo.UsersVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * @author happy
 * @create 2024-10-29-{TIME}
 */
public interface UsersService extends IService<Users> {
    Result<UsersVo> login(Map<String, String> loginParams);

    Result<PageResult<UsersVo>> getAllUsers(Integer pageNo, Integer pageSize, String nickName, String phone, String gender);

    Result<UsersVo> updateUserInformation(Long userId, Users userInfo);

    Result<String> updateAvatar(Long userId, MultipartFile file);

    Result<UsersVo> loginPhone(Long phone);

    Result<Map> getUserDetailWithCoupons(Long userId);
}